#!/usr/bin/env bash

curl -XPOST -H "content-type:application/x-zc-object" \
-H "X-Zc-Sub-Domain-Id:24" \
-H "X-Zc-Nonce:xg1r3dpif1x4bwu3" \
-H "X-Zc-Access-Key:ce61300e409e6bd180382669e13f64d6" \
-H "X-Zc-Developer-Id:4" \
-H "X-Zc-Timeout:600" \
-H "X-Zc-Timestamp:1721122832" \
-H "X-Zc-Major-Domain-Id:9" \
-H "X-Zc-Developer-Signature:e04165e869a2cc3d0a8bbab3e19956316183cc499c0da3bfe7bdca85108d1371" \
-d '{"majorDomainId":9, "subDomainId":24, "physicalId": "0202954eb0cda838", "payload":"A9kPQJZmAAAAAAMAJAAAyrc="}' \
http://localhost:5000/zc-mqtt-business/v1/setCmd


curl -XPOST -H "content-type:application/x-zc-object" \
-H "X-Zc-Sub-Domain-Id:19" \
-H "X-Zc-Nonce:xg1r3dpif1x4bwu3" \
-H "X-Zc-Access-Key:1af5681d405ef6ff809fa2832d0f0a5b" \
-H "X-Zc-Developer-Id:3" \
-H "X-Zc-Timeout:600" \
-H "X-Zc-Timestamp:1726283344" \
-H "X-Zc-Major-Domain-Id:2" \
-H "X-Zc-Developer-Signature:7739bc9c42e080ed7c38b1565806f92c7867481befd5de54bd8a36d303a09225" \
-d '{"majorDomainId":2, "subDomainId":19, "physicalId": "8888888888888888", "payload":"A9kPQJZmAAAAAAMAJAAAyrc="}' \
http://localhost:5000/zc-mqtt-business/v1/setCmd


curl -k -XPOST -H "content-type:application/x-zc-object" \
-H "X-Zc-Sub-Domain-Id:19" \
-H "X-Zc-Nonce:xg1r3dpif1x4bwu3" \
-H "X-Zc-Access-Key:1af5681d405ef6ff809fa2832d0f0a5b" \
-H "X-Zc-Developer-Id:3" \
-H "X-Zc-Timeout:600" \
-H "X-Zc-Timestamp:1726283344" \
-H "X-Zc-Major-Domain-Id:2" \
-H "X-Zc-Developer-Signature:7739bc9c42e080ed7c38b1565806f92c7867481befd5de54bd8a36d303a09225" \
-d '{"majorDomainId":2, "subDomainId":19, "physicalId": "8888888888888888", "payload":"A9kPQJZmAAAAAAMAJAAAyrc="}' \
https://jucloud-htc-acrouter-82010553.eu-central-1.elb.amazonaws.com/zc-mqtt-business/v1/setCmd


curl -XPOST -H "content-type:application/x-zc-object" \
-H "X-Zc-Sub-Domain-Id:19" \
-H "X-Zc-Nonce:xg1r3dpif1x4bwu3" \
-H "X-Zc-Access-Key:1af5681d405ef6ff809fa2832d0f0a5b" \
-H "X-Zc-Developer-Id:4" \
-H "X-Zc-Timeout:600" \
  -H "X-Zc-Timestamp:1721122832" \
-H "X-Zc-Major-Domain-Id:2" \
-H "X-Zc-Developer-Signature:e04165e869a2cc3d0a8bbab3e19956316183cc499c0da3bfe7bdca85108d1371" \
-d '{"majorDomainId":2, "subDomainId":19, "physicalId": "8888888888888888", "payload":"A9kPQJZmAAAAAAMAJAAAyrc="}' \
http://localhost:5000/zc-mqtt-business/v1/getDeviceInfo


tcpdump -i any port 5810 -nn -A -s0




#######日立#######
#################
curl -XPOST -H "content-type:application/json" \
-H "X-Zc-Msg-Attr_event:updateCon" \
-H "X-Zc-Msg-Attr_token:xg1r3dpif1x4bwu9" \
-H "X-Zc-Timeout:600" \
-H "X-Zc-Timestamp:1726283344" \
-H "X-Zc-Nonce:aacc1122" \
-H "X-Zc-Developer-Id:4" \
-H "X-Zc-Major-Domain:jhl" \
-H "X-Zc-Sub-Domain:" \
-H "X-Zc-Access-Key:jhl" \
-d '{"majorDomainId":9, "subDomainId":24, "physicalId": "0202954eb0cda838", "payload":"MEO4PSb8kAEAAJUBBAAAAH4IyAACOAZDCQBXAQADAABJ//8AAEn//wAASf//AABJ//8AAEn//wAASf//AABJ//8AAEn//wAASf//AABJ//8AAEn//wAASf//AABJ//8AAEn//wAASf//AABJEx4RHgAAFBwAbwEAAAAAYIAAAAA/DwAACMgAAgAAF0ECAAAAAAAAAP8AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAQAABAAAAAAAAAAAAAAAAAC4PSb8kAEAAAIAAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACMgAAgEAAAAAAAAhAAAAAAAAAAAAAAAAAAAAAAMA//8A//8A//8A//8A//8A//8A//8A//8A//8A//8A//8A//8A//8A//8A//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAh54="}' \
"http://nlb-t3-9b92a6307327747e.elb.eu-central-1.amazonaws.com/api/cloud/onNotification"


curl -XPOST -H "content-type:application/json" \
-H "X-Zc-Msg-Attr_event:onDeviceOnline" \
-H "X-Zc-Msg-Attr_token:xg1r3dpif1x4bwu9" \
-H "X-Zc-Timeout:600" \
-H "X-Zc-Timestamp:1726283344" \
-H "X-Zc-Nonce:aacc1122" \
-H "X-Zc-Developer-Id:4" \
-H "X-Zc-Major-Domain:jhl" \
-H "X-Zc-Sub-Domain:" \
-H "X-Zc-Access-Key:jhl" \
-d '{"majorDomainId":9, "subDomainId":24, "physicalId": "0202954eb0cda838", "status":2}' \
"http://nlb-t3-9b92a6307327747e.elb.eu-central-1.amazonaws.com/api/cloud/onDeviceOnline"

curl -XPOST -H "content-type:application/json" \
-d '{"majorDomainId":9, "subDomainId":24, "physicalId": "30020502b0cda838", "status":1}' \
"http://nlb-t3-9b92a6307327747e.elb.eu-central-1.amazonaws.com/api/cloud/onDeviceOnline"